tag @s add StreamMinecart
tag @s add GameCtrol
$tag @s add $(team)
$team join $(team) @s
data merge entity @s {CustomDisplayTile:true,CustomName:'{"text": "暗流采矿车"}',CustomNameVisible:true,NoGravity:true,DisplayState:{Name:"dropper",Properties:{triggered:"false",facing:"north"}},DisplayOffset:5,Invulnerable:true}

## DataMarker数据格式
#(Int)Level: 采矿车等级,仅用于取值,无实际作用
#(Int, Tick)Output.NeedTick: 每次输出虚空源质需要的时间
#(Int)Output.Count: 每次输出虚空源质的数量
#(Float)Output.Multiply: 若存在,每次输出虚空源质时会将Count乘以Multiply值后输出
summon marker ~ ~ ~ {Tags:["util.noriding_kill","StreamMinecart.data","GameCtrol"],data:{Level:0,Output:{NeedTick:70,Count:1}}}
$data modify entity @n[tag=StreamMinecart.data,distance=..1,type=marker] data.Output.Pos.x set value "$(output_posX)"
$data modify entity @n[tag=StreamMinecart.data,distance=..1,type=marker] data.Output.Pos.y set value "$(output_posY)"
$data modify entity @n[tag=StreamMinecart.data,distance=..1,type=marker] data.Output.Pos.z set value "$(output_posZ)"
data modify entity @n[tag=StreamMinecart.data,distance=..1,type=marker] data.summonPos.x set from entity @n[tag=StreamMinecart,type=minecart,distance=..1] Pos[0]
data modify entity @n[tag=StreamMinecart.data,distance=..1,type=marker] data.summonPos.y set from entity @n[tag=StreamMinecart,type=minecart,distance=..1] Pos[1]
data modify entity @n[tag=StreamMinecart.data,distance=..1,type=marker] data.summonPos.z set from entity @n[tag=StreamMinecart,type=minecart,distance=..1] Pos[2]
ride @n[type=marker,distance=..1,tag=StreamMinecart.data] mount @s

#ClearOutput
$data remove block $(output_posX) $(output_posY) $(output_posZ) Items